<?php

/**
 * Description of TaskDeadline
 *
 * @author atila
 */
class Zend_View_Helper_TaskDeadline extends Zend_View_Helper_Abstract {
   
   public function taskDeadline($percent, $status) {
      if ($status == "Done") {
         return 'bar-success';
      } elseif ($percent > 0 && $percent < 25) {
         return 'bar-success';
      } elseif ($percent >= 25 && $percent < 50) {
         return 'bar-info';
      } elseif ($percent >= 50 && $percent < 75) {
         return 'bar-warning';
      } elseif ($percent >= 75 && $percent <= 100) {
         return 'bar-danger';
      } else {
         return '';
      }
   }
}
